package com.chc.web.house_unit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/01/12/10:49
 * @Description:
 */
@Data
@TableName("house_unit")
public class HouseUnit implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long unitId;

    private Long buildId;

    private String unitName;
    //表明name字段不属性house_unit表里面的字段
    @TableField(exist = false)
    private String name;
}
